package cn.autowired.exam.entity;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cq
 * @since 2018-05-25
 */
@TableName("exam_application")
public class Application extends Model<Application> {

    private static final long serialVersionUID = 1L;
	@TableId(type = IdType.AUTO)
	private Integer id;
    /**
     * 学号
     */
	private String studentNo;
    /**
     * 老师id
     */
	private Integer teacherId;
    /**
     * 预约时间
     */
	private Date time;

	private Integer isRefused;

	private String reason;

	public Integer getIsRefused() {
		return isRefused;
	}

	public void setIsRefused(Integer isRefused) {
		this.isRefused = isRefused;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getStudentNo() {
		return studentNo;
	}

	public void setStudentNo(String studentNo) {
		this.studentNo = studentNo;
	}

	public Integer getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(Integer teacherId) {
		this.teacherId = teacherId;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}



	@Override
	protected Serializable pkVal() {
		return this.id;
	}

public static interface Field{
		String id = "id";
		String studentNo = "studentNo";
		String teacherId = "teacherId";
		String time = "time";
		String isRefused ="isRefused";
		String reason ="reason";
	}
}
